package com.tourism.service;

import com.github.pagehelper.PageInfo;
import com.tourism.entity.AttractionOrder;
import com.tourism.entity.AttractionOrderQuery;
import com.tourism.entity.OrderPayInfo;

/**
 * @Description
 * @Author z
 * @Date 2021-05-01 9:15
 */
public interface AttractionOrderService {
    /**
     * 新增景点订单
     *
     * @param attractionOrder
     * @return
     */
    boolean addAttractionOrder(AttractionOrder attractionOrder);

    /**
     * 根据id查找景点订单
     *
     * @param id
     * @return
     */
    AttractionOrder getAttractionOrderById(Long id);
    /**
     * 根据id删除景点订单
     *
     * @param id
     * @return
     */
    Boolean deleteAttractionOrderById(Long id);


    /**
     * 分页查询景点订单列表
     *
     * @param query
     * @return
     */
    PageInfo<AttractionOrder> getAttractionOrderList(AttractionOrderQuery query);
    /**
     * 更新支付状态
     *
     * @param orderPayInfo
     * @return
     */
    boolean updateOrderPayInfo(OrderPayInfo orderPayInfo);
}
